package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.dtos.DishDto;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ghy
 * @version v1.0
 * create on 2022/11/18 12:00
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    List<DishDto> findPage(@Param("page") Integer page,
                           @Param("pageSize") Integer pageSize,
                           @Param("name")  String name);

}
